//
//  LCHomeTableViewPassageModel.m
//  段子手
//
//  Created by dllo on 16/3/19.
//  Copyright © 2016年 JokesTeam. All rights reserved.
//

#import "LCHomeTableViewPassageModel.h"

@implementation LCHomeTableViewPassageModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"group"]) {
        self.text = value[@"text"];
        self.media_type = value[@"media_type"];
        self.user = value[@"user"];
        self.category_name = value[@"category_name"];
        self.bury_count = value[@"bury_count"];
        self.digg_count = value[@"digg_count"];
        self.comment_count = value[@"comment_count"];
        self.comments = value[@"comments"];
        self.origin_video = value[@"origin_video"];
        self.play_count = value[@"play_count"];
        self.large_image = value[@"large_image"];
        self.url = value[@"medium_cover"][@"url_list"][0][@"url"];
        
        self.durationV = [value[@"duration"] floatValue];
        self.id_str = value[@"id_str"];
        
        if ([[value[@"media_type"] stringValue] isEqualToString:@"0"]) {
            self.CellStr = @"LCHomePassageTableViewCell";
        }
        if ([[value[@"media_type"] stringValue]  isEqualToString:@"3"]) {
            self.CellStr = @"LCHomeVedioTableViewCell";
        }
        if ([[value[@"media_type"] stringValue] isEqualToString:@"1"]||[[value[@"media_type"] stringValue] isEqualToString:@"2"]) {
            self.CellStr = @"LCHomeImageTableViewCell";
        }
        
        
    }
 
    
    
}




@end
